package com.cjj.dto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 二手商品发布请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateSecondhandProductReqDTO {
    //订单id
    private Long orderId;

    //用户id，用户创建订单
    private Long userId;

    //产品名字
    private String productName;

    //订单价格
    private BigDecimal price;

    //产品描述
    private String description;

    //产品图片
    private String images;

    //产品类别
    private String category;

    //产品新旧程度
    @JsonProperty("product_condition")
    private String productCondition;
}
